<?php
//****************Include files******************
session_start();
include_once("codelibrary/inc/variables.php");//Using variables.php for Database Connectivity
include_once("codelibrary/inc/functions.php");//Using functions.php for using getAnyTableWhereData()

// will be Changed in case server is in a different location
/*$datetime= indianDate(); 
$datetimenew = explode(" ", $datetime);
$date= $datetimenew[0];
$time =$datetimenew[1];

$datetime = date("Y-m-d H:i:s");
$datetimenew = explode(" ", $datetime);
$date= $datetimenew[0];
$time =$datetimenew[1];

$t=$time;
//editData($users_login_trail_table,$logouttime,$t);
$query="update $administrator_login_trail_table set logouttime='$t' where trailid='$sess_trail_id'";
mysql_query($query);

$query = "update administrator_info set sessionid='' where administrator_id='".$_SESSION['administrator_id']."'";
mysql_query($query) or die(mysql_error());
*/
$business_id = $_SESSION['business_id'];
session_unset();
session_destroy();
header("location: customer-login.php?logerr=logout&business_id=$business_id");
exit;
?>